<?php echo $this->Form->create('Account'); ?>
<?php echo $this->Form->hidden("Account.id", array('value' => $this->data['Account']['id'])); ?>
<?php echo $this->Form->hidden("Account.contract_id", array('value' => $this->data['Account']['contract_id'])); ?>

<table id="tabla">
    <tbody>
        <tr>
            <td>Número de planilla</td>
            <td colspan="2"><?php echo $this->data['Account']['numero_planilla'] ?></td>
        </tr>
        <tr>
            <td>Certificación estandar</td>
            <td><?php echo $this->Html->link($this->Html->image("pdf.png", array('width' => '30', 'heigth' => '30')), array('controller' => 'Accounts', 'action' => 'print_contract_certification', $this->data['Account']['id']), array('target' => 'blank', 'escape' => false)) ?></td>
            <td><?php echo $this->Ajax->link('Corregir', array('controller' => 'Accounts', 'action' => 'edit_contract_certification', $this->data['Account']['id'], 2), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'title' => 'Editar formato F-17')) ?></td>
        </tr>
        <tr>
            <td>Descuento retención F-16</td>
            <td><?php echo $this->Html->link($this->Html->image("pdf.png", array('width' => '30', 'heigth' => '30')), array('controller' => 'Accounts', 'action' => 'print_retention', $this->data['Account']['id']), array('target' => 'blank', 'escape' => false)) ?></td>
            <td><?php echo $this->Ajax->link('Corregir', array('controller' => 'Accounts', 'action' => 'edit_retention', $this->data['Account']['id'], 2), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'title' => 'Editar  formato F-16')) ?></td>
        </tr>
        <tr>
            <td>Informe de Actividades</td>    
            <td colspan="2"><?php echo $this->Html->link($this->Html->image("pdf.png", array('width' => '30', 'heigth' => '30')), array('controller' => "AccountObligations", "action" => "print_report", $this->data['Account']['id']), array('target' => '_blank', 'escape' => false)) ?></td>
        </tr> 
        <tr>
            <td></td>
            <td colspan="2"><?php echo $this->Form->input("Account.estado", array('label' => '', 'options' => array('Hacer correcciones' => 'Hacer correcciones', 'Aceptada' => 'Aceptada'))); ?></td>
        </tr>
        <tr>
            <td>Observación</td>
            <td colspan="2"><?php echo $this->Form->input("Account.observacion", array('label' => '')); ?> </td>
        </tr>
    </tbody>
</table>

<?php
echo $this->Ajax->submit('Guardar', array('url' => array('controller' => 'Accounts', 'action' => 'review', $this->data['Account']['id']), 'update' => 'content', 'indicator' => 'loading'));
echo $this->Form->end();
?>
<?php echo $this->Ajax->link($this->Html->image("regresar.gif", array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar')), array('controller' => "Accounts", "action" => "review_index", $this->Session->read('contrato')), array('update' => 'content', 'indicator' => 'loading', 'escape' => false), null) ?>
